﻿// <copyright file="IObserver.cs" company="Beuth Hochschule für Technik">
// Design Patterns for C# developed by Steps
// Copyright (C) 2009 Stefan "dersteps@gmail.com" Matyba
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; 
// either version 3 of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
// </copyright>
// <author>Stefan Matyba</author>
// <email>dersteps@gmail.com</email>
// <date>2009-10-20</date>
// <summary>Observer Pattern - Observer part</summary>

namespace Breakdown.Logic
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// Observer Pattern - IObserver
    /// All classes that implement this interface will be observers to IObservable classes
    /// </summary>
    public interface IObserver
    {
        /// <summary>
        /// Notifies the observer that an observed object has been changed
        /// </summary>
        /// <param name="observed">The observed IObservable</param>
        void Update(IObservable observed);
    }
}
